home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Hardware / PowerManager DDK 1.0f1 / SampleDriver / BuildSampleDriver next >
Encoding:
Text File  |  1999-11-30  |  1.5 KB  |  52 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        BuildSampleDriver
  3. #
  4. #    Contains:    Sample code for a PCI device driver that supports PCI power off.
  5. #    
  6. #                You may incorporate this sample code into your applications without
  7. #                restriction, though the sample code has been provided "AS IS" and the 
  8. #                responsibility for its operation is 100% yours.  However, what you are 
  9. #                not permitted to do is to redistribute the source as "DSC Sample Code" 
  10. #                after having made changes. If you're going to re-distribute the source, 
  11. #                we require that you make it clear in the source that the code was 
  12. #                descended from Apple Sample Code, but that you've made changes.
  13. #
  14. #    Version:    1.0
  15. #
  16. #    Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  17. #
  18. #    File Ownership:
  19. #
  20. #        DRI:                xxx put dri here xxx
  21. #
  22. #        Other Contact:        xxx put other contact here xxx
  23. #
  24. #        Technology:            xxx put technology here xxx
  25. #
  26. #    Writers:
  27. #
  28. #        (BB)    Bob Bradley
  29. #
  30. #    Change History (most recent first):
  31. #
  32. #        <0+>     7/11/99    BB        First checked in.
  33. #
  34.  
  35. Set -e CIncludes                "::Interfaces&Libraries:Interfaces:"
  36. Set -e ObjDir                    ":BuildResults:Obj:"
  37. Set -e LibDir                    ":BuildResults:Lib:"
  38. Set -e MapDir                    ":BuildResults:Map:"
  39. Set -e SampleDriverDir            ":"
  40. Set -e StubLibraries            "::Interfaces&Libraries:Libraries:"
  41.  
  42. Set StartTime `Date -n`
  43. Echo "Start Time: `Date -t -c {StartTime}`"
  44.  
  45. BuildProgram SampleDriver
  46.  
  47. Set StopTime   `Date -n`
  48. Set TotalTime `Evaluate {StopTime}-{StartTime}`
  49. Echo "Stop  Time: `Date -t -c {StopTime}`"
  50. Echo "Total Time: "`Date -t -c {TotalTime} | StreamEdit -e "/≈/ ∂
  51.                    Replace /•12/ ∂" 00∂"; Replace /[AP]M/ ∂"∂" "`
  52.